package com.gzhryc.jdbc.annotaion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(value=ElementType.FIELD)
@Retention(value=RetentionPolicy.RUNTIME)
public @interface Join {

	public abstract String[] fromField();
	
	public abstract String type() default "INNER";

	public abstract String toTable() default "";
	
	public abstract String[] toField() default "id";
	
	public abstract int priority() default 1;
}